Blitz (23/40)

From:Steve Hargreaves
Date:23 Sep 2001 at 22:45:36
Subject:MUI Image remapping

Hi there,

I use an Imagebutton in one of my apps. The ILBM data for the image is
IncBin'd into my program, decoded to a bitmap, and grabbed as a shape. It's
fine here, but the palette isn't automatically remapped on other screens.

I've tried using both ObtainBestPenA_ and BDGfx.lib, both of which fail to
correctly remap the palette on 128 col AGA screens.

I tried creating a bitmap using the Bitmap.mui class and remapping using MUI
routines, then creating my own image button using MUINewObject with a
pointer to the remapped MUI Object holding the new image data, but this
screws up my button size (It seems to respect 8 bit boundaries).

So:- Is there a way to copy MUI Object data back to a blitz bitmap after
remapping so that I can grab the new, remapped image as a blitz shape, or:-

Is there anyway to use Newicon.library to grab the image from an icon,
mapped appropriately, into a blitz shape. or:-

Is there any other reliable way get a shape mapped to the current screens
palette before it's displayed. And:-

Why do both other routines fail on the 128 col screen. Is this an AGA bug?

All the best

Steve



// A1200 '060, 2+32Meg, EZ-Tower, 540 Meg HD
// (sob), Power CD-ROM, HPDJ610C, OS3.9, 56K Origo
// Modem, Logic 3 Speedmouse, Sega and CD32
\\// Controllers, NEC 2A Multisync, and no hair.
\/

Author of:- GHelp, Blitzdock, Placemouse, WBCycle, Amiga Draughts and
ScalosEject.

Rare as is true love, true friendship is rarer.
-- La Fontaine

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie